package com.xiaoxing.zhinenghuacangku_jining.di.module;

import com.jess.arms.di.scope.ActivityScope;

import dagger.Module;
import dagger.Provides;

import com.xiaoxing.zhinenghuacangku_jining.mvp.contract.JiNing_DianBiaoAGVRuKuContract;
import com.xiaoxing.zhinenghuacangku_jining.mvp.model.JiNing_DianBiaoAGVRuKuModel;


@Module
public class JiNing_DianBiaoAGVRuKuModule {
    private JiNing_DianBiaoAGVRuKuContract.View view;

    /**
     * 构建JiNing_DianBiaoAGVRuKuModule时,将View的实现类传进来,这样就可以提供View的实现类给presenter
     *
     * @param view
     */
    public JiNing_DianBiaoAGVRuKuModule(JiNing_DianBiaoAGVRuKuContract.View view) {
        this.view = view;
    }

    @ActivityScope
    @Provides
    JiNing_DianBiaoAGVRuKuContract.View provideJiNing_DianBiaoAGVRuKuView() {
        return this.view;
    }

    @ActivityScope
    @Provides
    JiNing_DianBiaoAGVRuKuContract.Model provideJiNing_DianBiaoAGVRuKuModel(JiNing_DianBiaoAGVRuKuModel model) {
        return model;
    }
}